package com.atguigu.spring.beans.spel;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class Person {
    @NonNull private String name;
    private Car car;
    //引用address bean的city属性
    private String city;
    //根据car的price确定info，car的price>=300000，金领，否则为白领
    private String info;
}
